package com.usian.user.fegin;

import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.pojos.WmUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author baimugudu
 * @email 2415621370@qq.com
 * @date 2023/8/25 9:00
 */
@FeignClient("leadnews-wemedia")
public interface WmUserFegin {
    @PostMapping("/wmUser/save")
    public ResponseResult saveWmUser(@RequestBody WmUser wmUser);
    @GetMapping("/wmUser/findWmUserByName/{name}")
    public WmUser findWmUserByName(@PathVariable("name") String name);
}
